解决Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses
Exception in thread "main" java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses. at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:120) at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:82) at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:75) at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1255) at org.apache.hadoop.mapreduce.Job$9.run(Job.java:1251) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614) at org.apache.hadoop.mapreduce.Job.connect(Job.java:1250) at org.apache.hadoop.mapreduce.Job.submit(Job.java:1279) at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1303) at com.admin.hadoop.mapreduce.avgstudent.AvgScore.run(AvgScore.java:86) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84) at com.admin.hadoop.mapreduce.avgstudent.AvgScore.main(AvgScore.java:91)
解决办法:
缺少Jar包:Hadoop-mapreduce-client-common-2.2.0.jar
以上就是解决Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses的全部内容了,更多内容请关注:CPP学习网_CPP大学
本文固定链接:CPP学习网_CPP大学-解决Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses
本文固定链接:CPP学习网_CPP大学-解决Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses